@extends('admin.layouts.login')
@section('content')
<div class="container">
    @if (count($errors->all()) > 0 || !empty($message))
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
            @if (!empty($message))
                <li>{{ $message }}</li>
            @endif
        </ul>
    </div>
    @endif
    <div class="main_box">
        <form action="/admin/login" id="login_form" method="post">
            {{ csrf_field() }}
            <input type="hidden" value="" id="j_randomKey" />
            <input type="hidden" name="jfinal_token" value="" />
            <p class="text-center logo"><img src="/assets/admin/layouts/images/logo.png" height="45"></p>
            <div class="login_msg text-center"><font color="red"></font></div>
            <div class="form-group">
                <div class="input-group">
                    <span class="input-group-addon" id="sizing-addon-user"><span class="glyphicon glyphicon-user"></span></span>
                    <input type="text" class="form-control" id="j_username" name="account" value="{{ old('account') }}" placeholder="登录账号" aria-describedby="sizing-addon-user">
                </div>
            </div>
            <div class="form-group">
                <div class="input-group">
                    <span class="input-group-addon" id="sizing-addon-password"><span class="glyphicon glyphicon-lock"></span></span>
                    <input type="password" class="form-control" id="j_password" name="password" placeholder="登录密码" aria-describedby="sizing-addon-password">
                </div>
            </div>
            {{--<div class="form-group">--}}
                {{--<div class="input-group">--}}
                    {{--<span class="input-group-addon" id="sizing-addon-password"><span class="glyphicon glyphicon-exclamation-sign"></span></span>--}}
                    {{--<input type="text" class="form-control" id="j_captcha" name="captcha" placeholder="验证码" aria-describedby="sizing-addon-password">--}}
                    {{--<span class="input-group-addon code" id="basic-addon-code"><img id="captcha_img" src="/assets/global/b-jui/images/captcha.jpg" alt="点击更换" title="点击更换" class="m"></span>--}}
                {{--</div>--}}
            {{--</div>--}}
            <div class="form-group">
                <div class="checkbox">
                    <label for="j_remember" class="m"><input id="j_remember" type="checkbox" name="is_remember" value="true">&nbsp;记住登陆账号!</label>
                </div>
            </div>
            <div class="text-center">
                <button type="submit" id="login_ok" class="btn btn-primary btn-lg">&nbsp;登&nbsp;录&nbsp;</button>&nbsp;&nbsp;&nbsp;&nbsp;
                <button type="reset" class="btn btn-default btn-lg">&nbsp;重&nbsp;置&nbsp;</button>
            </div>
            <div class="text-center">
                <hr>
                2016 - 2017 <a href="/admin">财塔 后台管理系统</a>
            </div>
        </form>
    </div>
</div>
@endsection